<include file="Index/header" />

<div class="container">
	<nav class="navbar navbar-default" role="navigation">
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav">
				<li>
					<a href="?m=admin&c=user&a=showList" class="glyphicon glyphicon-arrow-right">返 回</a>
				</li>
			</ul>
			<form class="navbar-form navbar-right" action="?m=admin&c=goods&a=query" method="post" role="search">
				<div class="form-group">
					<input type="text" class="form-control" placeholder="会员查询" name="user_name" id="name" />
				</div> <button type="submit" class="btn btn-default">搜索</button>
			</form>
		</div>
	</nav>

	<form action="?m=admin&c=user&a=update" method="post" onsubmit="return checkForm()"
		style="margin: 0 auto; width: 30%;">
		<h3>会员信息修改</h3>
		<div class="form-group">
			<label for="goods_brand">会员编号</label>
			<input type="text" class="form-control" name="goods_brand" disabled value="{$user_info.user_id}" />
		</div>
		<div class="form-group">
			<label for="goods_name">会员名称</label>
			<input type="text" class="form-control" name="goods_name" disabled value="{$user_info.u_name}" />
		</div>
		<div class="form-group">
			<label for="goods_price">邮箱</label>
			<input type="text" class="form-control" placeholder="邮箱" name="u_email" id="u_eamil"
				value="{$user_info['u_email']}" />
		</div>
		<div class="form-group">
			<label for="goods_descript">手机号</label>
			<input type="text" class="form-control" placeholder="手机号" name="mobile_phone" id="mobile_phone"
				value="{$user_info['mobile_phone']}" />
		</div>
		<div class="form-group">
			<label for="goods_descript">性别</label>
			<select name="u_gender" class="form-control">
				<option value="男" <eq name="user_info['u_gender']" value="男">selected</eq> >男</option>
				<option value="女" <eq name="user_info['u_gender']" value="女">selected</eq> >女</option>
			</select>
		</div>
		<div class="form-group">
			<label for="goods_address">地址</label>
			<input type="text" class="form-control" placeholder="地址" name="u_address" id="u_address"
				value="{$user_info['u_address']}" />
		</div>
		<div class="form-group">
			<label for="goods_descript">生日</label>
			<input type="text" class="form-control" placeholder="1999-6-10" name="u_birthday" id="u_birthday"
				value="{$user_info['u_birthday']}" />
		</div>
		<input type="hidden" value="{$user_info.user_id}" name="user_id" />
		<button type="submit" class="btn btn-default btn-block">提交</button>
		<button type="reset" class="btn btn-default btn-block">重置</button>
	</form>

	<br />
	<br />
	<br />
</div>

<script type="text/javascript">
	//进行初步非空检测
	function checkForm() {
		var uphone = document.getElementById("mobile_phone").value;
		var uemail = document.getElementById("u_email").value;
		if (uphone == "") {
			alert("手机号未填写！！");
			return false;
		}
		else if (uemail == "") {
			alert("邮箱未填写！！");
			return false;
		}
		return true;
	}
</script>
<include file="Index/footer" />